#pragma once 

#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>
typedef int HPDataType;
typedef struct Heap
{
    int* a;
    int size;
    int capacity;
}HP;

void AdjustDown(HPDataType* a, int size, int parent);
void AdjustUP(HPDataType* a, int child);
void HeapSwap(HPDataType* x, HPDataType* y);
void HeapPrint(HP* php);
void HeapInit(HP* php);
void HeapDestroy(HP* php);
void HeapPush(HP* php, HPDataType x);
void HeapPop(HP* php);
HPDataType HeapTop(HP* php);
bool HeapEmpty(HP* php);
int HeapSize(HP* php);
